'use strict';

function get_union(collection_a, collection_b) {
  //在这里写入代码
  let arr=[];
 
  for(let i of collection_b){
  for(let j of collection_a)
  {
    if(i===j)
    {
      arr.push(i);
    }
  }
}console.log(arr);
  for(let n=0;n<=arr.length-1;n++){
  for(let m=0;m<=collection_b.length-1;m++)
  {
    if(arr[n]==collection_b[m])
    {
     collection_b.splice(m,1);
    }

    
  }}

console.log(collection_b);
console.log(collection_a.concat(collection_b));
return collection_a.concat(collection_b);
}

module.exports = get_union;

